package com.example.gymlearning.dto.request;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
@AllArgsConstructor
@NoArgsConstructor

public class RegisterRequest {
        @NotBlank(message = "用户名不能为空")
        @Size(min = 3,max = 20,message = "用户名长度为20")
        private  String username;

        @NotBlank(message = "密码不能为空！")
        @Size(min=6,message = "密码至少需要6位")
        private  String password;
//
//
//        private  String email = "default@example.com";
//        private  Integer age = 0;
        private String confirmPassword;
}
